You can choose uniform IP allocation scheme for Router ID and VTEP Loopback.
efa fabric setting update --name <fabric-name> --loopback-scheme <uniform|granular> efa fabric setting update --name <fabric-name> --loopback-ip-range <ip-range>
Fabric Name: fs-1, Fabric Description: , Fabric Type: non-clos, Fabric Status: configure-success, Fabric Health: Green +-------------+------+-----------+------------+------+--------------+-------------+------------+---------+------+----+ | IP ADDRESS | RACK | HOST NAME | ASN | ROLE | DEVICE STATE | APP STATE | CONFIG | PENDING | VTLB | LB | | | | | | | | | GEN REASON | CONFIGS | ID | ID | +-------------+------+-----------+------------+------+--------------+-------------+------------+---------+------+----+ | 10.20.246.3 | r1 | NH-Leaf1 | 4200000000 | Leaf | provisioned | cfg in-sync | NA | NA | 2 | 1 | | 10.20.246.4 | r1 | NH-Leaf2 | 4200000000 | Leaf | provisioned | cfg in-sync | NA | NA | 2 | 1 | +-------------+------+-----------+------------+------+--------------+-------------+------------+---------+------+----+ efa fabric setting show --name fs-1 | grep -i loopback | Loopback Scheme | uniform | | Loopback IP Range | 172.31.254.0/24 | | RouterID Loopback IP Range | 172.31.128.0/24 | | VTEP Loopback IP Range | 172.31.64.0/24 | | Loopback Port Number | 1 | | VTEP Loopback Port Number | 2 |
Rack1-Device1(config)# do show running-config ip router-id ip router-id 172.31.254.62 NH-Leaf1(config)# do show running-config interface Loopback interface Loopback 1 ip address 172.31.254.62/32 no shutdown ! interface Loopback 2 ip address 172.31.254.17/32 no shutdown ! Rack1-Device1(config)# do show running-config overlay-gateway overlay-gateway fs-1 ip interface Loopback 2 no map vni auto map vlan 24 vni 30300 map vlan 25 vni 30301 map vlan 26 vni 30302 map bridge-domain 4095 vni 30213 map bridge-domain 4096 vni 30212 activate ! Rack1-Device1(config)#do show running-config router bgp address-family ipv4 unicast router bgp address-family ipv4 unicast network 172.31.254.17/32 network 172.31.254.62/32 maximum-paths 8 graceful-restart ! |
Rack1-Device2(config)# do show running-config ip router-id ip router-id 172.31.254.100 Rack1-Device2(config)# do show running-config interface Loopback interface Loopback 1 ip address 172.31.254.100/32 no shutdown ! interface Loopback 2 ip address 172.31.254.17/32 no shutdown ! Rack1-Device2(config)# do show running-config overlay-gateway overlay-gateway fs-1 ip interface Loopback 2 no map vni auto map vlan 24 vni 30300 map vlan 25 vni 30301 map vlan 26 vni 30302 map bridge-domain 4095 vni 30213 map bridge-domain 4096 vni 30212 activate ! Rack1-Device2(config)# do show running-config router bgp address-family ipv4 unicast router bgp address-family ipv4 unicast network 172.31.254.17/32 network 172.31.254.100/32 maximum-paths 8 graceful-restart |